package com.joolun.activity.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.joolun.common.annotation.Excel;
import com.joolun.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 活动对象 activity_info
 *
 * @author www.joolun.com
 * @date 2022-11-22
 */
@Data
@TableName("activity_info")
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "活动对象")
public class ActivityInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** PK */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /** 活动唯一编码 */
    @Excel(name = "活动唯一编码")
    @ApiModelProperty(required = true,value = "活动编码")
    private String activityCode;

    /** 活动名称 */
    @Excel(name = "活动名称")
    @ApiModelProperty(required = true,value = "活动名称")
    private String name;

    /** 活动状态1、未开始 2、已开始 3、已结束 */
    @Excel(name = "活动状态1、未开始 2、已开始 3、已结束")
    private String status;

    /** 开奖时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开奖时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date openTime;

    /** 逻辑删除标记（0：显示；1：隐藏） */
    private String delFlag;

    /** 活动访问数量 */
    private Long num;

}
